#pragma once

#include <vector>

using std::vector;

class Etat;

typedef vector<Etat*> etatContainer;

class ListeEtats {
public:
	ListeEtats();
	~ListeEtats();

	void addEtat(Etat*);
	Etat* getEtat(unsigned index) const;
	Etat* searchEtat(unsigned id) const;
	void retirerEtat(unsigned id);
	unsigned size() const;

	void purgerEtats();

	Etat* operator[](unsigned index) const;
private:
	etatContainer etats;
};